﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PSE.Framework.Communication.Configuration.Adapters;

namespace PSE.Framework.Communication.Adapters
{
    /// <summary>
    /// Interface base dos adapters de entrada
    /// </summary>
    public interface IBaseInputAdapter : IAdapter
    {
        /// <summary>
        /// Abre o adapter de entrada
        /// </summary>
        /// <param name="config">Configuração do adapter</param>
        void Open(InputAdapterConfiguration config);

        /// <summary>
        /// Abre o adapter de entrada
        /// </summary>
        /// <param name="config">Configuração do adapter</param>
        /// <param name="parameter">Parâmetro de abertura do adapter</param>
        void Open(InputAdapterConfiguration config, object parameter);
    }
}
